package code1;

import java.util.Scanner;

public class choose {
    void dochoose(){
        int k = 1;
        Scanner sc = new Scanner(System.in);
        String sno, sname, sdept;
        while (k != 0) {
            k = sc.nextInt();
            switch (k) {
                case 0://e
                    System.out.println("已退出系统");
                    break;
                case 1://z
                    insert in = new insert();
                    in.doinsert();
                    break;
                case 2://s
                    delete de = new delete();
                    de.dodelete();
                    break;
                case 3://g
                    update up = new update();
                    up.doupdate();
                    break;
                case 4://c
                    search se = new search();
                    se.search();
                    break;
                case 5://a
                    out ou = new out();
                    ou.doout();
                    break;
                default:
                    System.out.println("请输入菜单中指定范围的数字");
            }
        }
    }
}
